<%@ page session="false"%>
<%@ page contentType="text/html;charset=UTF8"%>
<%@page import="net.sureon.biz.CompanyConfigBO"%>
<%@page import="net.sureon.common.SureonConstants"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>

<%
	String str = (String)request.getAttribute("loginFailure");
 %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>欢迎光临 - 在线考勤系统 TitaOn</title>
<meta http-equiv="title" content="欢迎光临 - 在线考勤系统 TitaOn"> 
<meta name="classification" content="online daily timing service"> 
<meta name="description" content="在线考勤, 在线考勤系统">
<meta name="keywords" content="在线考勤，在线考勤系统，Timetable online" /> 
<style type="text/css">
.style_index {
	width: 98%;
}

.style2 {
	text-align: right;
}

.style9 {
	font-size: small;
}

#form1 {
	height: 392px;
}
</style>
<link href="/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10003185-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
</head>
<body style="vertical-align: 0px">
<form name="form1" method="post" action="login.do" id="login"><script
	type="text/javascript">
	//<![CDATA[
	var theForm = document.forms['form1'];
	if (!theForm) {
		theForm = document.form1;
	}
	function __doPostBack(eventTarget, eventArgument) {
		if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
			theForm.__EVENTTARGET.value = eventTarget;
			theForm.__EVENTARGUMENT.value = eventArgument;
			theForm.submit();
		}
	}
	//]]>
</script>

<div style="position: absolute; top: 2px">
<table cellpadding="0" cellspacing="0" class="style_index">
	<tr>
		<td><a id="HyperLink1"
			href="<%=request.getContextPath()%>/registerCompany.do"
			style="font-size: Small;">免费注册</a> &nbsp;<a id="HyperLink2"
			href="html/Demo.html" style="font-size: Small;">系统演示</a> &nbsp;<a
			id="HyperLink3" href="html/Profile.html" style="font-size: Small;">系统简介</a>
		</td>
		<td>&nbsp;</td>
		<td style="text-align: right"><a id="HyperLink4"
			style="font-size: Small;">简体版</a> &nbsp;<a id="HyperLink5"
			style="font-size: Small;">蘩體版</a> &nbsp;<a id="HyperLink6"
			style="font-size: Small;">English</a></td>
	</tr>
	<tr>
		<td colspan="3">
		<hr style="height: -12px" />
		</td>
	</tr>
<%
	CompanyConfigBO configBO = null;
	configBO = (CompanyConfigBO) request.getSession().getAttribute(SureonConstants.SESSION_ATTR_COMPAYCONFIG);
 	
 	String indexLogo = null;
 	
 	if(configBO != null && configBO.getIndexLogo() != null && configBO.getIndexLogo().length() > 8) {
 		String siteURL = (String) request.getSession().getAttribute(SureonConstants.COOKIE_SITEURL);
 		indexLogo = request.getContextPath() + "/brand" + configBO.getIndexLogo();
 	}else{
 		indexLogo = request.getContextPath() + "/pic/Titaon-logo.gif";
 	}
 %>	
	<tr>
		<td colspan="3" style="text-align: center">
		<div id="Panel1" style="height: 300px; width: 350px;"><br />
		<img id="Image1" src="<%=indexLogo %>"
			style="height: 82px; width: 320px; border-width: 0px;" /> <br />
		<br />
		<table cellpadding="1" cellspacing="1" class="style_index"
			bgcolor="#BFCDDB">
			<tr>
				<td colspan="3">
				<hr />
				</td>
			</tr>
			<tr>
				<td class="style2">邮箱：</td>
				<td style="text-align: left"><input name="userName" type="text"
					id="TextBox1" style="width: 160px;"
					value="<c:out value="${appCookie.userName}" />" /></td>
				<td><span style="font-size: Small;"><input
					id="CheckBox1" type="checkbox" name="saveUserName"
					<c:if test="${appCookie.userName != null}">checked</c:if> /><label
					for="CheckBox1">保存用户</label></span></td>
			</tr>
<!-- 			
			<%
				//String siteUrl = (String) request.getAttribute("siteUrlReqAttr");
				//if (siteUrl == null) {
			%>
			<tr>
				<td class="style2">公司：</td>
				<td style="text-align: left"><input name="siteURL" type="text"
					id="TextBox2" style="width: 160px;"
					value="<c:out value="${appCookie.siteURL}" />" /></td>
				<td><span style="font-size: Small;"><input
					id="CheckBox2" type="checkbox" name="saveCompany"
					<c:if test="${appCookie.siteURL != null}">checked</c:if> /><label
					for="CheckBox2">保存公司</label></span></td>
			</tr>
 			
			<%
				//}
			%>
-->
			<tr bgcolor="#BFCDDB">
				<td class="style2">密码：</td>
				<td style="text-align: left"><input name="password"
					type="password" id="TextBox3" style="width: 160px;"
					value="<c:if test="${appCookie.token != null}">thepassword</c:if>" /></td>
				<td><!--<span style="font-size: Small;"><input
					id="CheckBox3" type="checkbox" name="savePassword"
					<c:if test="${appCookie.token != null}">checked</c:if> /><label
					for="CheckBox3">保存密码</label></span> --></td>
			</tr>
			<tr>
				<td class="style2">&nbsp;</td>
				<td><input type="submit" name="Button1" value="登 录"
					id="Button1" style="width: 60px;" /></td>
 
				<td><a href="<%=request.getContextPath() %>/forgetPassword.do" style="font-size: Small;">忘记密码</a></td>
				
			</tr>
		<%
			String sendMail = (String)request.getAttribute("sendMail");
			if("true".equals(sendMail)) {
		%>
			<tr>
			<td colspan="3"><div style="color:red;font-size: small;">密码將通过mail发送到您的邮箱，请注意查收!</div></td>
			</tr>
		<%		
			}
		 %>
		 
		 <%
		 		String registerCompany = (String)request.getAttribute("registerCompany");
		 		if("success".equals(registerCompany)) {
		 		
		  %>
		  		<tr>
			<td colspan="3"><div style="color:red;font-size: small;">恭喜你，注册成功！相关信息将通过mail发送给您！</div></td>
			</tr>
		  		
		  <%
		  		}
		   %>
			<tr>
				<td colspan="3">
				<div style="color:red"><%=(str == null || "".equals(str)) ? "" : str %></div>
				</td>
			</tr>
			<tr>
				<td class="style2" colspan="3">
				<hr />
				</td>
			</tr>
		</table>

		</div>
		</td>
	</tr>

	<tr>
		<td colspan="3" style="text-align: center"><span class="style9"><a href="html/ContactUs.html"> <span class="style9">联系我们</span></a>
		- <a href="html/Career.html"> <span class="style9">工作机会</span></a> - <a href="html/ServiceItems.html"><span class="style9">服务条款</span></a> - <a href="html/SecurityPolicy.html"><span class="style9">隐私政策</span></a> - <a href="html/Help.html"><span class="style9">帮助</span></a></span></td>
	</tr>
	<tr>
		<td colspan="3" style="text-align: center"><span class="style9">Email:
		</span><a href="mailto:sales@titaon.net"> <span class="style9">sales@titaon.net</span></a><span
			class="style9">&nbsp; Tel: 021-58501244&nbsp; 13818970626</span><br />
		<a href="http://www.miibeian.gov.cn/"><span class="style9">沪ICP备09048312号</span></a>
		<span class="style9"
			style="border-collapse: separate; color: rgb(102, 102, 102); font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0;">
		©2008 titaon.net</span></td>
	</tr>
</table>

</div>
</form>
</body>
</html>
